package com.fosss.krusikal;

/**
 * 用来描述边 A-B:3
 */
public class EData {
    //边的一端
    private char start;
    //边的另一端
    private char end;
    //边的长度
    private Integer weight;

    public EData(char start, char end, Integer weight) {
        this.start = start;
        this.end = end;
        this.weight = weight;
    }

    public char getStart() {
        return start;
    }

    public void setStart(char start) {
        this.start = start;
    }

    public char getEnd() {
        return end;
    }

    public void setEnd(char end) {
        this.end = end;
    }

    public Integer getWeight() {
        return weight;
    }

    public void setWeight(Integer weight) {
        this.weight = weight;
    }

    @Override
    public String toString() {
        return "EData{" +
                "<" + start +
                "," + end +
                ">, weight=" + weight +
                '}';
    }
}
